package com.gather.zx;

import java.util.Objects;

public class Poker{
	/** 牌面值 */
	private String name;
	/** 花色 */
	private String flower;
	/** 大小点数 */
	private int num;

	public Poker() {
	}

	public Poker(String name, String flower, int num) {
		super();
		this.name = name;
		this.flower = flower;
		this.num = num;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFlower() {
		return flower;
	}

	public void setFlower(String flower) {
		this.flower = flower;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String toString() {
		if (Objects.nonNull(flower)) {
			return name + "-" + num + "-" + flower;
		}
		return name + "-" + num;
	}
}
